<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<body>
<script type="text/javascript">
    $(function () {
        $.ajax({
            type: "POST",
            url: "http://localhost:8080/dev/validate/test2",
            success: function (msg) {
                alert("success: " + JSON.stringify(msg));
            },
            error: function (msg) {
                alert("error: " + JSON.stringify(msg));
            }
        });
    })
</script>
</body>
</html>